package com.ss.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

@Repository("commonDAO")
public class CommonDAO extends HibernateDaoSupport {
	@Autowired 
	private void init(SessionFactory sessionFactory) {
		super.setSessionFactory(sessionFactory);
	} 
	public void test() {
		System.out.println("hello world");
	}
}
